import request from "@/utils/request";

// 查询待跟进信息列表
export function daigenjinListBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/daigenjinlist",
    method: "get",
    params: query,
  });
}

// 查询左心房客户推送信息列表
export function listBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/list",
    method: "get",
    params: query,
  });
}

// 查询左心房客户推送信息列表
export function yslistBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/yslist",
    method: "get",
    params: query,
  });
}

// 查询左心房客户推送信息详细
export function getBizCustomer(id) {
  return request({
    url: "/biz/bizCustomer/" + id,
    method: "get",
  });
}

// 新增左心房客户推送信息
export function addBizCustomer(data) {
  return request({
    url: "/biz/bizCustomer",
    method: "post",
    data: data,
  });
}
//

// 修改左心房客户推送信息
export function updateBizCustomer(data) {
  return request({
    url: "/biz/bizCustomer",
    method: "put",
    data: data,
  });
}

// 删除左心房客户推送信息
export function delBizCustomer(id) {
  return request({
    url: "/biz/bizCustomer/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomer/findMaxSort",
    method: "get",
  });
}
// 导出左心房客户推送信息
export function exportBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/exportMd5",
    method: "get",
    params: query,
  });
}

// 手动分配
export function manualShare(query) {
  return request({
    url: "/biz/bizCustomer/manualShare",
    method: "get",
    params: query,
  });
}
// 我的客户zhuan
export function myShareCustomer(query) {
  return request({
    url: "/biz/bizCustomer/myShareCustomer",
    method: "get",
    params: query,
  });
}
// 修改状态
export function updateStatus(data) {
  return request({
    url: "/biz/bizCustomer/updateStatus",
    method: "post",
    data: data,
  });
}
/**
 * 根据手机号码查询用信息
 * @param {phone} query
 * @returns
 */
export function findCustomerByPhone(query) {
  return request({
    url: "/biz/bizCustomer/findCustomerByPhone",
    method: "get",
    params: query,
  });
}

/**
 * 根据手机号码或者客户姓名查询用信息
 * @param {nameOrPhone} query
 * @returns
 */
export function findCustomerByNameOrPhone(query) {
  return request({
    url: "/biz/bizCustomer/findCustomerByNameOrPhone",
    method: "get",
    params: query,
  });
}

// 查询协助客户
export function xieZuList(query) {
  return request({
    url: "/biz/bizCustomer/xieZuList",
    method: "get",
    params: query,
  });
}

// 公海
export function gonghailist(query) {
  return request({
    url: "/biz/bizCustomer/gonghailist",
    method: "get",
    params: query,
  });
}

// 接入线
export function xiansuoList(query) {
  return request({
    url: "/biz/bizCustomer/xiansuoList",
    method: "get",
    params: query,
  });
}
// 我的客户
export function listBizMyListCustomer(query) {
  return request({
    url: "/biz/bizCustomer/mylist",
    method: "get",
    params: query,
  });
}
// 成交客户
export function chenjiaolist(query) {
  return request({
    url: "/biz/bizCustomer/chenjiaolist",
    method: "get",
    params: query,
  });
}

// 线索客户
export function xiansuochilist(query) {
  return request({
    url: "/biz/bizCustomer/xiansuochilist",
    method: "get",
    params: query,
  });
}

// 团队线索客户
export function teamxiansuochilist(query) {
  return request({
    url: "/biz/bizCustomer/teamxiansuochilist",
    method: "get",
    params: query,
  });
}

// 工资统计
export function yuangonggongzitongji(query) {
  return request({
    url: "/biz/bizCustomer/yuangonggongzitongji",
    method: "get",
    params: query,
  });
}

// test websocket
export function testWebSocket(query) {
  return request({
    url: "/biz/bizCustomer/testWebSocketPc",
    method: "get",
    params: query,
  });
}
export function testWebSocket2(query) {
  return request({
    url: "/biz/bizCustomer/testWebSocketPc2",
    method: "get",
    params: query,
  });
}

// 打电话
export function playCall(query) {
  return request({
    url: "/biz/bizCustomer/playCall",
    method: "get",
    params: query,
  });
}

/**
 * 锁客
 * @param {id} query
 * @returns
 */
export function lockCustomer(query) {
  return request({
    url: "/biz/bizCustomer/lockCustomer",
    method: "get",
    params: query,
  });
}

export function lookPhone(query) {
  return request({
    url: "/biz/bizCustomer/lookPhone",
    method: "get",
    params: query,
  });
}
// 手动分配
export function manualShareBatch(query) {
  return request({
    url: "/biz/bizCustomer/manualShareBatch",
    method: "get",
    params: query,
  });
}
// 用户评级
export function customerClueRate(data) {
  return request({
    url: "/biz/bizCustomer/clueRate",
    method: "post",
    data: data,
  });
}
// 重点客户

export function updateHeart(data) {
  return request({
    url: "/biz/bizCustomer/updateHeart",
    method: "post",
    data: data,
  });
}

// 关联查询客户
export function customerWithJoinList(query) {
  return request({
    url: "/biz/bizCustomer/customerWithJoinList",
    method: "get",
    params: query,
  });
}
// 查询我的接单列表(带客户信息)
export function findMyReceiveList(query) {
  return request({
    url: "/biz/bizCustomer/findMyReceiveList",
    method: "get",
    params: query,
  });
}
// 撞库客户
export function findZhuangKuList(query) {
  return request({
    url: "/biz/bizCustomer/findZhuangKuList",
    method: "get",
    params: query,
  });
}
// 查询公海待流转列表
export function findWillToGongHaiList(query) {
  return request({
    url: "/biz/bizCustomer/findWillToGongHaiList",
    method: "get",
    params: query,
  });
}

// 查询公海待流转列表
export function findWeiJieWillToShareList(query) {
  return request({
    url: "/biz/bizCustomer/findWeiJieWillToShareList",
    method: "get",
    params: query,
  });
}

// 查询公海待流转列表
export function selectToHongHai15(query) {
  return request({
    url: "/biz/bizCustomer/selectToHongHai15",
    method: "get",
    params: query,
  });
}
